package com.woniu.lock;

/**
 * @author zhaolei
 * @date 2021/5/7 - 23:45
 */
public class TestThreadDemo4 {
    public static void main(String[] args) {
        ThreadDemo4 th1= new ThreadDemo4();
        for (int i = 0; i <25 ; i++) {
            Thread thread1 = new Thread(th1);
            thread1.setName("用户1");
            thread1.start();
        }
        for (int i = 0; i < 25 ; i++) {

            Thread thread2 = new Thread(th1);
            thread2.setName("用户2");
            thread2.start();
        }
    }
}
